/******************************************************************************
 * FILE NAME:
 *  tp_ap_int_def.h
 *
 * DESCRIPTION:
 * This file contains all define for interface tp_ap which is interface
 * between Application-layer and Transport-layer
 *
 * DESIGN REFERENCE:
 *
 *
 * REVISION HISTORY   :
 * Date            Author               REASON
 * 08.08.2013      Thuan Nguyen         Creation
 *
 * Copyright 2005, NET
 * ***************************************************************************/


#ifndef TP_AP_INT_DEF_C_
#define TP_AP_INT_DEF_C_

#include"tp_types.h"

#define TP_AP_MSG_EXCHANGE_ID 0x0001
#define MESSAGE_LENGTH 200

/*This is header of tp_ap message*/
typedef struct
{
	U32 msg_id;
	U16 msg_len;

	U32 src_id;
	U32 dst_id;
	struct sockaddr_in src_addr;
	struct sockaddr_in dst_addr;
}tp_ap_msg_hdr_t;

typedef struct
{
	U8 content[MESSAGE_LENGTH];
}tp_ap_msg_exchange_t;

typedef union
{
	tp_ap_msg_exchange_t	exchange_param;
}tp_ap_msg_body_t;

typedef struct
{
	tp_ap_msg_hdr_t		msg_hdr;
	tp_ap_msg_body_t	msg_body;
}transport_msg_union_t;
#endif /* TP_AP_INT_DEF_C_ */
